package example_09.demo_01;

import java.util.Calendar;

public class shenfenzheng {
    public static void main(String[] args) {
        String shen = "370284199906215319";
        String year = shen.substring(6,10);
        String month = shen.substring(10,12);
        String day = shen.substring(12,14);
        int y =Integer.parseInt(year);
        int m = Integer.parseInt(month);
        int d =Integer.parseInt(day);
        Calendar bir = Calendar.getInstance();
        System.out.println(y+" "+m+" "+d);
        bir.set(y+30,m-1,d);
        System.out.println(bir.get(Calendar.DAY_OF_YEAR));
        System.out.println(bir.get(Calendar.DAY_OF_MONTH));


    }
}
